<?php

class IndexController extends Zend_Controller_Action
{

    public function init()
    {
        /* Initialize action controller here */
    	$categories=new Application_Model_DbTable_Categories();
    	$this->view->categories =$categories->fetchAll();
    	$marques=new Application_Model_DbTable_Marques();
    	$this->view->marques =$marques->fetchAll();
    	$layout=$this->_helper->layout();
    }

    public function indexAction()
    {
        $articles = new Application_Model_DbTable_Articles();
        $categories=new Application_Model_DbTable_Categories();
    	$this->view->articles = $articles->fetchAll();
    	$this->view->categories =$categories->fetchAll();
    }

  

}







